/*
 * A Gneral purpose java based Math Library created by Susanta Tewari.
 * Copyright is protected. Contact Susanta Tewari at <statsusant@yahoo.com>
 */

package org.math.calculas;

import org.math.data.DataValue;

/**
 *
 * @author Susanta Tewari <stewari@yahoo.com>
 */
public class ScalarVariable implements Variable {

    /** Field description */
    private String symbol = "";

    /** Field description */
    private DataValue dataValue;

    /**
     * Constructs ...
     *
     * @param symbol description
     * @param dataValue description
     */
    ScalarVariable(String symbol, DataValue dataValue) {

        this.symbol    = symbol;
        this.dataValue = dataValue;
    }

    /**
     * Constructs ...
     *
     * @param symbol description
     */
    public ScalarVariable(String symbol) {
        this.symbol = symbol;
    }

    public String getSymbol() {
        return symbol;
    }

    public DataValue getValue() {
        return this.dataValue;
    }

    public void setValue(DataValue dataValue) {
        this.dataValue = dataValue;
    }
}
